package com.cx.pojo;

import java.util.ArrayList;
import java.util.List;

public class BrandImgExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BrandImgExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andImgUrlOneIsNull() {
            addCriterion("img_url_one is null");
            return (Criteria) this;
        }

        public Criteria andImgUrlOneIsNotNull() {
            addCriterion("img_url_one is not null");
            return (Criteria) this;
        }

        public Criteria andImgUrlOneEqualTo(String value) {
            addCriterion("img_url_one =", value, "imgUrlOne");
            return (Criteria) this;
        }

        public Criteria andImgUrlOneNotEqualTo(String value) {
            addCriterion("img_url_one <>", value, "imgUrlOne");
            return (Criteria) this;
        }

        public Criteria andImgUrlOneGreaterThan(String value) {
            addCriterion("img_url_one >", value, "imgUrlOne");
            return (Criteria) this;
        }

        public Criteria andImgUrlOneGreaterThanOrEqualTo(String value) {
            addCriterion("img_url_one >=", value, "imgUrlOne");
            return (Criteria) this;
        }

        public Criteria andImgUrlOneLessThan(String value) {
            addCriterion("img_url_one <", value, "imgUrlOne");
            return (Criteria) this;
        }

        public Criteria andImgUrlOneLessThanOrEqualTo(String value) {
            addCriterion("img_url_one <=", value, "imgUrlOne");
            return (Criteria) this;
        }

        public Criteria andImgUrlOneLike(String value) {
            addCriterion("img_url_one like", value, "imgUrlOne");
            return (Criteria) this;
        }

        public Criteria andImgUrlOneNotLike(String value) {
            addCriterion("img_url_one not like", value, "imgUrlOne");
            return (Criteria) this;
        }

        public Criteria andImgUrlOneIn(List<String> values) {
            addCriterion("img_url_one in", values, "imgUrlOne");
            return (Criteria) this;
        }

        public Criteria andImgUrlOneNotIn(List<String> values) {
            addCriterion("img_url_one not in", values, "imgUrlOne");
            return (Criteria) this;
        }

        public Criteria andImgUrlOneBetween(String value1, String value2) {
            addCriterion("img_url_one between", value1, value2, "imgUrlOne");
            return (Criteria) this;
        }

        public Criteria andImgUrlOneNotBetween(String value1, String value2) {
            addCriterion("img_url_one not between", value1, value2, "imgUrlOne");
            return (Criteria) this;
        }

        public Criteria andImgUrlTwoIsNull() {
            addCriterion("img_url_two is null");
            return (Criteria) this;
        }

        public Criteria andImgUrlTwoIsNotNull() {
            addCriterion("img_url_two is not null");
            return (Criteria) this;
        }

        public Criteria andImgUrlTwoEqualTo(String value) {
            addCriterion("img_url_two =", value, "imgUrlTwo");
            return (Criteria) this;
        }

        public Criteria andImgUrlTwoNotEqualTo(String value) {
            addCriterion("img_url_two <>", value, "imgUrlTwo");
            return (Criteria) this;
        }

        public Criteria andImgUrlTwoGreaterThan(String value) {
            addCriterion("img_url_two >", value, "imgUrlTwo");
            return (Criteria) this;
        }

        public Criteria andImgUrlTwoGreaterThanOrEqualTo(String value) {
            addCriterion("img_url_two >=", value, "imgUrlTwo");
            return (Criteria) this;
        }

        public Criteria andImgUrlTwoLessThan(String value) {
            addCriterion("img_url_two <", value, "imgUrlTwo");
            return (Criteria) this;
        }

        public Criteria andImgUrlTwoLessThanOrEqualTo(String value) {
            addCriterion("img_url_two <=", value, "imgUrlTwo");
            return (Criteria) this;
        }

        public Criteria andImgUrlTwoLike(String value) {
            addCriterion("img_url_two like", value, "imgUrlTwo");
            return (Criteria) this;
        }

        public Criteria andImgUrlTwoNotLike(String value) {
            addCriterion("img_url_two not like", value, "imgUrlTwo");
            return (Criteria) this;
        }

        public Criteria andImgUrlTwoIn(List<String> values) {
            addCriterion("img_url_two in", values, "imgUrlTwo");
            return (Criteria) this;
        }

        public Criteria andImgUrlTwoNotIn(List<String> values) {
            addCriterion("img_url_two not in", values, "imgUrlTwo");
            return (Criteria) this;
        }

        public Criteria andImgUrlTwoBetween(String value1, String value2) {
            addCriterion("img_url_two between", value1, value2, "imgUrlTwo");
            return (Criteria) this;
        }

        public Criteria andImgUrlTwoNotBetween(String value1, String value2) {
            addCriterion("img_url_two not between", value1, value2, "imgUrlTwo");
            return (Criteria) this;
        }

        public Criteria andImgUrlThreeIsNull() {
            addCriterion("img_url_three is null");
            return (Criteria) this;
        }

        public Criteria andImgUrlThreeIsNotNull() {
            addCriterion("img_url_three is not null");
            return (Criteria) this;
        }

        public Criteria andImgUrlThreeEqualTo(String value) {
            addCriterion("img_url_three =", value, "imgUrlThree");
            return (Criteria) this;
        }

        public Criteria andImgUrlThreeNotEqualTo(String value) {
            addCriterion("img_url_three <>", value, "imgUrlThree");
            return (Criteria) this;
        }

        public Criteria andImgUrlThreeGreaterThan(String value) {
            addCriterion("img_url_three >", value, "imgUrlThree");
            return (Criteria) this;
        }

        public Criteria andImgUrlThreeGreaterThanOrEqualTo(String value) {
            addCriterion("img_url_three >=", value, "imgUrlThree");
            return (Criteria) this;
        }

        public Criteria andImgUrlThreeLessThan(String value) {
            addCriterion("img_url_three <", value, "imgUrlThree");
            return (Criteria) this;
        }

        public Criteria andImgUrlThreeLessThanOrEqualTo(String value) {
            addCriterion("img_url_three <=", value, "imgUrlThree");
            return (Criteria) this;
        }

        public Criteria andImgUrlThreeLike(String value) {
            addCriterion("img_url_three like", value, "imgUrlThree");
            return (Criteria) this;
        }

        public Criteria andImgUrlThreeNotLike(String value) {
            addCriterion("img_url_three not like", value, "imgUrlThree");
            return (Criteria) this;
        }

        public Criteria andImgUrlThreeIn(List<String> values) {
            addCriterion("img_url_three in", values, "imgUrlThree");
            return (Criteria) this;
        }

        public Criteria andImgUrlThreeNotIn(List<String> values) {
            addCriterion("img_url_three not in", values, "imgUrlThree");
            return (Criteria) this;
        }

        public Criteria andImgUrlThreeBetween(String value1, String value2) {
            addCriterion("img_url_three between", value1, value2, "imgUrlThree");
            return (Criteria) this;
        }

        public Criteria andImgUrlThreeNotBetween(String value1, String value2) {
            addCriterion("img_url_three not between", value1, value2, "imgUrlThree");
            return (Criteria) this;
        }

        public Criteria andImgUrlFourIsNull() {
            addCriterion("img_url_four is null");
            return (Criteria) this;
        }

        public Criteria andImgUrlFourIsNotNull() {
            addCriterion("img_url_four is not null");
            return (Criteria) this;
        }

        public Criteria andImgUrlFourEqualTo(String value) {
            addCriterion("img_url_four =", value, "imgUrlFour");
            return (Criteria) this;
        }

        public Criteria andImgUrlFourNotEqualTo(String value) {
            addCriterion("img_url_four <>", value, "imgUrlFour");
            return (Criteria) this;
        }

        public Criteria andImgUrlFourGreaterThan(String value) {
            addCriterion("img_url_four >", value, "imgUrlFour");
            return (Criteria) this;
        }

        public Criteria andImgUrlFourGreaterThanOrEqualTo(String value) {
            addCriterion("img_url_four >=", value, "imgUrlFour");
            return (Criteria) this;
        }

        public Criteria andImgUrlFourLessThan(String value) {
            addCriterion("img_url_four <", value, "imgUrlFour");
            return (Criteria) this;
        }

        public Criteria andImgUrlFourLessThanOrEqualTo(String value) {
            addCriterion("img_url_four <=", value, "imgUrlFour");
            return (Criteria) this;
        }

        public Criteria andImgUrlFourLike(String value) {
            addCriterion("img_url_four like", value, "imgUrlFour");
            return (Criteria) this;
        }

        public Criteria andImgUrlFourNotLike(String value) {
            addCriterion("img_url_four not like", value, "imgUrlFour");
            return (Criteria) this;
        }

        public Criteria andImgUrlFourIn(List<String> values) {
            addCriterion("img_url_four in", values, "imgUrlFour");
            return (Criteria) this;
        }

        public Criteria andImgUrlFourNotIn(List<String> values) {
            addCriterion("img_url_four not in", values, "imgUrlFour");
            return (Criteria) this;
        }

        public Criteria andImgUrlFourBetween(String value1, String value2) {
            addCriterion("img_url_four between", value1, value2, "imgUrlFour");
            return (Criteria) this;
        }

        public Criteria andImgUrlFourNotBetween(String value1, String value2) {
            addCriterion("img_url_four not between", value1, value2, "imgUrlFour");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Byte value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Byte value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Byte value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Byte value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Byte value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Byte> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Byte> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Byte value1, Byte value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andOther1IsNull() {
            addCriterion("other1 is null");
            return (Criteria) this;
        }

        public Criteria andOther1IsNotNull() {
            addCriterion("other1 is not null");
            return (Criteria) this;
        }

        public Criteria andOther1EqualTo(String value) {
            addCriterion("other1 =", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1NotEqualTo(String value) {
            addCriterion("other1 <>", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1GreaterThan(String value) {
            addCriterion("other1 >", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1GreaterThanOrEqualTo(String value) {
            addCriterion("other1 >=", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1LessThan(String value) {
            addCriterion("other1 <", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1LessThanOrEqualTo(String value) {
            addCriterion("other1 <=", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1Like(String value) {
            addCriterion("other1 like", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1NotLike(String value) {
            addCriterion("other1 not like", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1In(List<String> values) {
            addCriterion("other1 in", values, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1NotIn(List<String> values) {
            addCriterion("other1 not in", values, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1Between(String value1, String value2) {
            addCriterion("other1 between", value1, value2, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1NotBetween(String value1, String value2) {
            addCriterion("other1 not between", value1, value2, "other1");
            return (Criteria) this;
        }

        public Criteria andOther2IsNull() {
            addCriterion("other2 is null");
            return (Criteria) this;
        }

        public Criteria andOther2IsNotNull() {
            addCriterion("other2 is not null");
            return (Criteria) this;
        }

        public Criteria andOther2EqualTo(String value) {
            addCriterion("other2 =", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2NotEqualTo(String value) {
            addCriterion("other2 <>", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2GreaterThan(String value) {
            addCriterion("other2 >", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2GreaterThanOrEqualTo(String value) {
            addCriterion("other2 >=", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2LessThan(String value) {
            addCriterion("other2 <", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2LessThanOrEqualTo(String value) {
            addCriterion("other2 <=", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2Like(String value) {
            addCriterion("other2 like", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2NotLike(String value) {
            addCriterion("other2 not like", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2In(List<String> values) {
            addCriterion("other2 in", values, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2NotIn(List<String> values) {
            addCriterion("other2 not in", values, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2Between(String value1, String value2) {
            addCriterion("other2 between", value1, value2, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2NotBetween(String value1, String value2) {
            addCriterion("other2 not between", value1, value2, "other2");
            return (Criteria) this;
        }

        public Criteria andBrandIdIsNull() {
            addCriterion("brand_id is null");
            return (Criteria) this;
        }

        public Criteria andBrandIdIsNotNull() {
            addCriterion("brand_id is not null");
            return (Criteria) this;
        }

        public Criteria andBrandIdEqualTo(Integer value) {
            addCriterion("brand_id =", value, "brandId");
            return (Criteria) this;
        }

        public Criteria andBrandIdNotEqualTo(Integer value) {
            addCriterion("brand_id <>", value, "brandId");
            return (Criteria) this;
        }

        public Criteria andBrandIdGreaterThan(Integer value) {
            addCriterion("brand_id >", value, "brandId");
            return (Criteria) this;
        }

        public Criteria andBrandIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("brand_id >=", value, "brandId");
            return (Criteria) this;
        }

        public Criteria andBrandIdLessThan(Integer value) {
            addCriterion("brand_id <", value, "brandId");
            return (Criteria) this;
        }

        public Criteria andBrandIdLessThanOrEqualTo(Integer value) {
            addCriterion("brand_id <=", value, "brandId");
            return (Criteria) this;
        }

        public Criteria andBrandIdIn(List<Integer> values) {
            addCriterion("brand_id in", values, "brandId");
            return (Criteria) this;
        }

        public Criteria andBrandIdNotIn(List<Integer> values) {
            addCriterion("brand_id not in", values, "brandId");
            return (Criteria) this;
        }

        public Criteria andBrandIdBetween(Integer value1, Integer value2) {
            addCriterion("brand_id between", value1, value2, "brandId");
            return (Criteria) this;
        }

        public Criteria andBrandIdNotBetween(Integer value1, Integer value2) {
            addCriterion("brand_id not between", value1, value2, "brandId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}